package com.yanqu.road.server.manager.activity.feast.task;

import com.yanqu.road.server.manager.activity.feast.CrossFeastMgr;
import com.yanqu.road.server.manager.activity.feast.activity.CrossFeastActivity;
import com.yanqu.road.utils.executor.GeneralTask;

/**
 * 灵峰分配
 * 2秒1次
 */
public class CrossFeastMountAllotTask extends GeneralTask {
    @Override
    public void doRun() {
        for (CrossFeastActivity activity : CrossFeastMgr.getActivityMap().values()) {
            try {
                activity.crossMountAllotTask();
            } catch (Exception e) {
                getLOGGER().error("error : ", e);
            }
        }
    }
}
